#include "myfun.h"
#include "string.h"


void delay(unsigned int time) 
{
	while(time--);
}

void ULong_Str(unsigned long dat,char *str) 
{
	char idata temp[20];
	unsigned char idata i=0,j=0;
	
	i=0;
	while(dat)
	{
		temp[i]=dat%10+0x30;
		i++;
		dat/=10;
	}
	j=i;
	for(i=0;i<j;i++)
	{
		str[i]=temp[j-i-1];
	}
	if(!i) {str[i++]='0';}
	str[i]=0;
}
